﻿#include "patterndesc.h"

int switchPaIndex(char * name)
{
int result=-1;	
if(strcmp(name ,D_2014029_NAME)==0)return D_2014029;
if(strcmp(name ,D_2014031_NAME)==0)return D_2014031;
if(strcmp(name ,D_2014032_NAME)==0)return D_2014032;
if(strcmp(name ,D_2014035_NAME)==0)return D_2014035;
if(strcmp(name ,D_2014037_NAME)==0)return D_2014037;
if(strcmp(name ,D_2014038_NAME)==0)return D_2014038;	
if(strcmp(name ,D_2011082_NAME)==0)return D_2011082;		
if(strcmp(name ,D_LESS20_NAME)==0)return D_LESS20;		
if(strcmp(name ,D_2014040_NAME)==0)return D_2014040;		
if(strcmp(name ,D_2006027_NAME)==0)return D_2006027;		
if(strcmp(name ,D_2014052_NAME)==0)return D_2014052;		


if(strcmp(name ,D_GENERAL_NAME)==0)return D_GENERAL;
	
		
return result;//default
}

